package com.dk.wiki.controller;

import com.dk.wiki.domain.Demo;
import com.dk.wiki.service.DemoService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 开发hello接口
 * @author: ldk
 * 描述: TODO
 */
@RestController
@RequestMapping("/demo")
public class DemoController {

    @Resource
    private DemoService demoService;

    @GetMapping("/list")
    // @RequestMapping(value = "/helloWord", method = RequestMethod.GET)
    public List<Demo> demo() {
        return demoService.list();
    }
}
